#include "bitByte.hpp"

void BitByte::packWORD(unsigned char* buffer, uint16_t value){
    buffer[0] = (value >> 8) & 0xFF;
    buffer[1] = value & 0xFF;
}

uint16_t BitByte::parseWORD(const unsigned char* buffer){
    return (buffer[0] << 8) | buffer[1];
}